package com.chance.cc.crawler.development.bootstrap.pcauto;

import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils;

import java.io.*;

/**
 * @ClassName biatuor
 * @Description TODO
 * @Author songding
 * @Date 2021/9/30 12:25
 * @Version 1.0
 **/
public class text {
    public static void main(String[] args) {
        String path = "E:\\chance-crawler-development\\crawler-dev-bootstrap\\src\\main\\java\\com\\chance\\cc\\crawler\\development\\bootstrap\\pcauto\\pcauto_json.txt";
        try {
            String readLine = null;
            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path),"UTF-8"));
            while((readLine = bufferedReader.readLine()) != null){
                if (StringUtils.isBlank(readLine)){
                    continue;
                }
                JSONObject jsonObject = JSONObject.parseObject(readLine);
                String article_url = jsonObject.getString("article_url");
                System.out.println(article_url);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
